<?php 
require_once dirname(__FILE__) . '/../../../incls/php/miscutils.class.php';
require_once dirname(__FILE__) . '/../../../incls/php/config.php';
require_once dirname(__FILE__) . '/../../../libs/MPDF56/mpdf.php';
$mpdf = new mPDF('c'); 
$mpdf->SetDisplayMode('fullpage');
// LOAD a stylesheet
$stylesheet = file_get_contents('http://' . URL . 'incls/php/ecomorder.print.php?secret_pass=0&id=' . $_GET['id']); 
$mpdf->WriteHTML($stylesheet);

$mpdf->Output($_GET['id'] . '.pdf', 'D');
?>